//comm.js
//获取应用实例
const app = getApp();
var that;
var ipUrl=app.globalData.ipUrl;//ip
var content;//品论内容
var curriculumId;//课程编号
var studentId;//学员编号
var tid;//课程编号
Page({
  data: {
    max:300,//文本域最大长度
    min:10,//最小长度
    scorevalue:0,
    scores:0,
  },  
 scoreChange:function(e) {
   var score=e.detail
   console.log(score)
   that.setData({
    scores:score
  })
 },
  onLoad: function () {
    that=this
  },
  inputs: function(e){
    var c=e.detail.value
    content=c
  },
  commit: function(){
    wx.request({
      url: ipUrl+'/comment/comment/addComment',
      method: "POST",
      success(res){
          if(res.data>0){
            
          }
      }
    })
  }
})